package com.terrapages.wmsc4j.client.mosaic.prodcon;

import java.awt.Point;
import java.awt.image.BufferedImage;

import com.lisasoft.patterns.producerconsumer.Consumable;

/**
 * And image that can be placed on another Image
 * {@link TileImageProducer} makes these by making requests to the tilcache 
 * and the {@link TileImageConsumer} puts them on the big picture
 * @author mvivian
 * @date 21 May 2007
 */
public class PlacableImage implements Consumable{
	
	private BufferedImage image;
	private Point placement;
	
	/**
	 * Creates a placeable image
	 * @param image The image
	 * @param placement Where to put it.
	 */
	public PlacableImage(final BufferedImage image, final Point placement) {
		super();
		this.image = image;
		this.placement = placement;
	}
	
	/**
	 * Gets the image
	 * @return BufferedImage
	 */
	public final BufferedImage getImage() {
		return image;
	}
	
	/**
	 * Sets the image
	 */
	public final void setImage(final BufferedImage image) {
		this.image = image;
	}
	
	/**
	 * Gets the placement, ie. where the image should be placed
	 * @return Point The Placement
	 */
	public final Point getPlacement() {
		return placement;
	}
	
	/**
	 * Sets the placement, ie. where the image should be placed
	 */
	public final void setPlacement(final Point placement) {
		this.placement = placement;
	}

}
